<template>
  <!-- 根组件中的 router-view ，只显示根路由、一级路由匹配的组件-->
  <router-view></router-view>
</template>

<script>
export default {
  created () {
    console.log(this.$router.getRoutes())
  }
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
body,
html {
  height: 100%;
}
.height100 {
  height: 100%;
}
.height100-60 {
  height: calc(100% - 60px);
}
.bg-black {
  background-color: #000;
}
</style>